package com.mm.cloth.model.request;

import com.google.gson.annotations.SerializedName;
import java.util.List;

/**
 * 分类排序请求模型
 * 对应服务器端的CategorySortRequest
 */
public class CategorySortRequest {

    /**
     * 排序项
     */
    public static class SortItem {
        @SerializedName("id")
        private Integer id;

        @SerializedName("sortOrder")
        private Integer sortOrder;
        
        public SortItem() {}
        
        public SortItem(Integer id, Integer sortOrder) {
            this.id = id;
            this.sortOrder = sortOrder;
        }
        
        public Integer getId() {
            return id;
        }
        
        public void setId(Integer id) {
            this.id = id;
        }
        
        public Integer getSortOrder() {
            return sortOrder;
        }
        
        public void setSortOrder(Integer sortOrder) {
            this.sortOrder = sortOrder;
        }
    }

    @SerializedName("categories")
    private List<SortItem> categories;
    
    public CategorySortRequest() {}
    
    public CategorySortRequest(List<SortItem> categories) {
        this.categories = categories;
    }
    
    public List<SortItem> getCategories() {
        return categories;
    }
    
    public void setCategories(List<SortItem> categories) {
        this.categories = categories;
    }
}
